package cate.game.play.buff;

import cate.game.attr.FightAttr;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "buff处理参数",detail = "临时强化")
public class BuffParam {

    @NoteField("附加属性")
    public FightAttr exAttr;

    @NoteField("附加回合")
    public Integer exRound;

    @NoteField("是否可被驱散")
    public Boolean dispel;

    @NoteField("无视抗控")
    public Boolean ignAntiCtrl;

    @NoteField("buff血量")
    public Long buffHp;

    public BuffParam() {
    }

    public BuffParam attrSet(FightAttr attr) {
        if (attr != null) {
            this.exAttr = attr;
        }
        return this;
    }

    public BuffParam exRoundSet(Integer exRound) {
        if (exRound != null) {
            this.exRound = exRound;
        }
        return this;
    }

    public BuffParam dispelSet(Boolean dispel) {
        if (dispel != null) {
            this.dispel = dispel;
        }
        return this;
    }

    public BuffParam ignAntiCtrlSet(Boolean ignAntiCtrl) {
        if(ignAntiCtrl!=null){
            this.ignAntiCtrl = ignAntiCtrl;
        }
        return this;
    }

    public BuffParam buffHpSet(double buffHp) {
        this.buffHp = (long)buffHp;
        return this;
    }
}
